package com.bgq365.study.springboot2.boot01helloworld.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Component //为了让它生效，需要加入到容器中
@ConfigurationProperties(prefix = "person")
@Data
public class Person {
    private String env;
    private String convertSingle;
    private String convertDouble;
    private Boolean flag;
    private Date time;
    private Integer i;
    private Double d;
    private Object obj;
    private List<String> list;
    private Map<String, Object> map;
}
